﻿<UserControl x:Class="Noboru.Demo.MessageBoxControlPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d"
    xmlns:c="clr-namespace:Noboru.Windows.Controls;assembly=Noboru.Windows.Controls">

    <Grid x:Name="LayoutRoot" Background="White">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
        </Grid.RowDefinitions>
        <Border Width="Auto" Height="26" BorderThickness="1,1,1,1" BorderBrush="#FF000000" VerticalAlignment="Center" Padding="0,0,0,0" Margin="0,0,0,10">
            <Border.Background>
                <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                    <GradientStop Color="#FF000000" Offset="1"/>
                    <GradientStop Color="#FFB3AFAF" Offset="0.003"/>
                </LinearGradientBrush>
            </Border.Background>
            <TextBlock Text="Message Box Control" Foreground="White"  VerticalAlignment="Center" HorizontalAlignment="Left" Margin="6,0,0,0"/>
        </Border>
        <Border BorderBrush="Gray" BorderThickness="1" Height="Auto" Grid.Row="1" Width="Auto" CornerRadius="5" Margin="10,0,10,0" Padding="8">
            <Border.Background>
                <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                    <GradientStop Color="#FFBEC0C2" Offset="0.994"/>
                    <GradientStop Color="#FFE5E5E6" Offset="0.006"/>
                </LinearGradientBrush>
            </Border.Background>
            <Grid>
                <Grid.RowDefinitions>
                    <RowDefinition Height="Auto" />
                    <RowDefinition Height="Auto" />
                    <RowDefinition Height="Auto" />
                    <RowDefinition Height="Auto" />
                    <RowDefinition Height="Auto" />
                    <RowDefinition Height="Auto" />
                    <RowDefinition Height="Auto" />
                    <RowDefinition Height="Auto" />
                    <RowDefinition Height="Auto" />
                    <RowDefinition Height="Auto" />
                </Grid.RowDefinitions>
                <TextBlock Grid.Row="0" Grid.Column="0" Text="Title" />
                <TextBox x:Name="txtTitle" Grid.Row="1" Grid.Column="0" Width="400" Text="Test message" Grid.ColumnSpan="3" HorizontalAlignment="Left" />
                <TextBlock Grid.Row="2" Grid.Column="0" Text="Message" Margin="0,6,0,0" />
                <TextBox x:Name="txtMessage" Grid.Row="3" Grid.Column="0" Width="400" Text="This is a test message." Grid.ColumnSpan="3" HorizontalAlignment="Left" Height="40" AcceptsReturn="True" />
                <TextBlock Grid.Row="4" Grid.Column="0" Text="Message Box Icon" Margin="0,6,0,0" />
                <Border Grid.Column="0" Grid.Row="5" Grid.ColumnSpan="3" CornerRadius="3" BorderThickness="1" BorderBrush="Gray" Margin="0, 2, 0, 8" Padding="4" HorizontalAlignment="Left">
                    <StackPanel Orientation="Horizontal">
                        <RadioButton IsChecked="true" x:Name="RadioNone" GroupName="Icon" />
                        <TextBlock Text="None" Margin="0, 0, 16, 0" />
                        <RadioButton GroupName="Icon" x:Name="RadioHand" />
                        <TextBlock Text="Hand" Margin="0, 0, 16, 0" />
                        <RadioButton GroupName="Icon" x:Name="RadioQuestion" />
                        <TextBlock Text="Question" Margin="0, 0, 16, 0"/>
                        <RadioButton GroupName="Icon" x:Name="RadioExclamation" />
                        <TextBlock Text="Exclamation" Margin="0, 0, 16, 0"/>
                        <RadioButton GroupName="Icon" x:Name="RadioAsterisk" />
                        <TextBlock Text="Asterisk" Margin="0, 0, 16, 0"/>
                        <RadioButton GroupName="Icon" x:Name="RadioStop" />
                        <TextBlock Text="Stop" Margin="0, 0, 16, 0"/>
                        <RadioButton GroupName="Icon" x:Name="RadioError" />
                        <TextBlock Text="Error" Margin="0, 0, 16, 0"/>
                        <RadioButton GroupName="Icon" x:Name="RadioWarning" />
                        <TextBlock Text="Warning" Margin="0, 0, 16, 0"/>
                        <RadioButton GroupName="Icon" x:Name="RadioInformation" />
                        <TextBlock Text="Information" Margin="0, 0, 16, 0"/>
                    </StackPanel>
                </Border>
                <TextBlock Grid.Row="6" Grid.Column="0" Text="Message Box Buttons" Margin="0,2,0,0" />
                <Border Grid.Column="0" Grid.Row="7" Grid.ColumnSpan="3" CornerRadius="3" BorderThickness="1" BorderBrush="Gray" Margin="0, 2, 0, 8" Padding="4" HorizontalAlignment="Left">
                    <StackPanel Orientation="Horizontal">
                        <RadioButton IsChecked="true" x:Name="RadioOk" GroupName="Buttons" />
                        <TextBlock Text="OK" Margin="0, 0, 16, 0" />
                        <RadioButton GroupName="Buttons" x:Name="RadioOkCancel" />
                        <TextBlock Text="OK Cancel" Margin="0, 0, 16, 0" />
                        <RadioButton GroupName="Buttons" x:Name="RadioAbortRetryIgnore" />
                        <TextBlock Text="Abort Retry Ignore" Margin="0, 0, 16, 0"/>
                        <RadioButton GroupName="Buttons" x:Name="RadioYesNoCancel" />
                        <TextBlock Text="Yes No Cancel" Margin="0, 0, 16, 0"/>
                        <RadioButton GroupName="Buttons" x:Name="RadioYesNo" />
                        <TextBlock Text="Yes No" Margin="0, 0, 16, 0"/>
                        <RadioButton GroupName="Buttons" x:Name="RadioRetryCancel" />
                        <TextBlock Text="Retry Cancel" Margin="0, 0, 16, 0"/>
                    </StackPanel>
                </Border>
                <TextBlock Grid.Row="8" Grid.Column="0" Text="Message Box Default Button" Margin="0,2,0,0" />
                <Border Grid.Column="0" Grid.Row="9" Grid.ColumnSpan="3" CornerRadius="3" BorderThickness="1" BorderBrush="Gray" Margin="0, 2, 0, 8" Padding="4" HorizontalAlignment="Left">
                    <StackPanel Orientation="Horizontal">
                        <RadioButton IsChecked="true" x:Name="RadioButton1" GroupName="DefaultButton" />
                        <TextBlock Text="Button 1" Margin="0, 0, 16, 0" />
                        <RadioButton GroupName="DefaultButton" x:Name="RadioButton2" />
                        <TextBlock Text="Button 2" Margin="0, 0, 16, 0" />
                        <RadioButton GroupName="DefaultButton" x:Name="RadioButton3" />
                        <TextBlock Text="Button 3" Margin="0, 0, 16, 0"/>
                    </StackPanel>
                </Border>
            </Grid>
        </Border>
        <Button Content="Show Message" Grid.Row="2" Width="150" Margin="10" HorizontalAlignment="Left" Name="ShowMessageButton" Click="ShowMessageButton_Click" />
        <TextBlock Grid.Row="3" Text="DialogResult = " Margin="40,20,0,0" x:Name="txtDialogResult" FontWeight="Bold" FontFamily="Portable User Interface" Foreground="#FF1D00FF" />
    </Grid>

</UserControl>
